<%@ page contentType="text/html;charset=utf-8" isErrorPage="true"%>
<%@ page import="java.util.logging.*"%>

<%
	Throwable ex = null;
	if (exception != null)
		ex = exception;
	if (request.getAttribute("javax.servlet.error.exception") != null)
		ex = (Throwable) request
				.getAttribute("javax.servlet.error.exception");

	//记录日志
	Logger logger = Logger.getLogger("500.jsp");
	logger.warning(ex.getMessage());
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>500 - 系统内部错误</title>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	</head>

	<body>
		<div>
			<h1>
				系统发生内部错误.
			</h1>
		</div>
		<div>
			<a href="/">返回首页</a>
		</div>
	</body>
</html>
